<script type="text/javascript">
var element = '{$element}';
var height = parseInt('{$height}'); height=height>0?height:300;
var width = '{$width}'; width=width.length>0?width:"98%";
var justText = parseInt('{$justText}'); justText=justText?true:false;
{literal}
if(element.length) {
	ckeditors[element] = CKEDITOR.replace(element,{
		language: "sr-latn",
		skin: "kama",
		toolbar: justText?"Basic":"Full",
		width: width,
		height: height,
		resize_enabled: false,
		autoUpdateElement: true,
		pasteFromWordRemoveStyles: true,
		
		filebrowserBrowseUrl: '/js/ckeditor/ckfinder/ckfinder.html',
	 	filebrowserImageBrowseUrl: '/js/ckeditor/ckfinder/ckfinder.html?type=Images',
	 	filebrowserFlashBrowseUrl: '/js/ckeditor/ckfinder/ckfinder.html?type=Flash',
	 	filebrowserUploadUrl: '/js/ckeditor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
	 	filebrowserImageUploadUrl: '/js/ckeditor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
	 	filebrowserFlashUploadUrl: '/js/ckeditor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'
	});
}
{/literal}
</script>